package io.renren.modules.finance.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.common.base.GenericServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.finance.dao.FinanceWithdrawalsSettingDao;
import io.renren.modules.finance.entity.FinanceWithdrawalsSetting;
import io.renren.modules.finance.service.FinanceWithdrawalsSettingService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 提现设置
 * @author meishou
 * @date 2019-05-02 14:36:33
 */
@Service("financeWithdrawalsSettingService")
public class FinanceWithdrawalsSettingServiceImpl extends GenericServiceImpl<FinanceWithdrawalsSettingDao, FinanceWithdrawalsSetting> implements FinanceWithdrawalsSettingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FinanceWithdrawalsSetting> page = baseMapper.selectPage(
                new Query<FinanceWithdrawalsSetting>().getPage(params),
                new QueryWrapper<FinanceWithdrawalsSetting>().orderByAsc("type_code")
        );

        return new PageUtils(page);
    }

}
